package cn.midas.org.mapper;

import cn.midas.org.domain.Department;
import cn.midas.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
   
    //查询所有
    List<Department> loadAll();

    // 根据id查询
    Department loadById(Long id);

    // 添加
    void save(Department department);

    // 修改
    void update(Department department);


    // 删除
    void remove(Long id);

    // 查询当前页数据
    List<Department> queryData(DepartmentQuery departmentQuery);

    // 查询分页总条数
    Integer queryCount(DepartmentQuery departmentQuery);

}
